<template>
    <div class="contentes">
        <h4>{{list.title}}</h4>
        <hr>
        <div v-html="list.content"></div>
    </div>    
</template>
<script>
import {Toast} from "mint-ui"
export default {
    data(){
        return {
            id : this.$route.params.id,
            list : {}
        }
    },
    created(){
        this.getData()
    },
    methods : {
        getData(){
            this.$http.get(this.base_url+'vue/datas/goods/goodi.json','json').then(function(res){
                console.log(res)
                if(res.body.status == 0){
                    this.list = res.body.data[this.id]
                }else{
                    Toast("操作失败")
                }
            })
        }
    }
}
</script>
<style>
    .contentes{
        padding: 2% 2% 52px 2%
    }
    .large{
        width: 100%;
    }
    .contentes h2{
        font-size: 14px;
    }
    .contentes h4{
        font-size: 16px;
        color: #26a2ff;
    }
</style>


